|
|
Hi tracers!
After doing some other things for a while, I returned to my great
POVghanistan project, beginning to play around with Mark-Hendrik
Bremer's suggestions for mud brick wall isosurfaces...
But when I tried to use conventional CSG to cut a door and windows in
the main building block (the subtracted objects being isosurfaces
themselves), I got those strange results you see in the first picture.
Obviously, the rounded_box part of the house's back wall has
disappeared, while the irregular_bricks part still remains... bizarre!
Then I tried simulated CSG within the isosurface function:
isosurface
{
function { max(f_rounded_box( x, y-YDispl(x,y,z), z, 0.05, 5, 1.5,
2.5)-Brick_Fun_New(x, y/3, z)*0.3,
-f_rounded_box( x, y-YDispl(x,y,z), z+2.35, 0.05, 0.5, 1,
0.25)-Brick_Fun_New(x, y/3, z+2.35)*0.3) }
contained_by { box {-50, 50} }
max_gradient 5
translate <0, 1.4, 0>
texture { Afghan_Classic_Mud }
}
but then now subtractions at all show up (2nd image; for convenience, I
left out the inner hollow of the building and just tried to cut a door
from the front side). The main body is 10 by 3 by 5 meters, the door
subtraction body is 1 by 2 by 0.5 meters and
translated -2.35 meters along the z axis. I asked myself how to
implement that "+2.35" when using a multi-partite function like in this
example... only in the rounded_box part or also in the YDispl and
Brick_Fun_New parts?
See you in Khyberspace!
Yadgar
Post a reply to this message
Attachments:
Download 'khana_csg_problem2.jpg' (14 KB)
Download 'khana_csg_problem.jpg' (14 KB)
Preview of image 'khana_csg_problem2.jpg'
Preview of image 'khana_csg_problem.jpg'
|
|